package com.zxw.flow.api;

import com.zxw.common.core.base.res.BasePageRes;
import com.zxw.common.core.base.res.BaseRes;
import com.zxw.flow.domain.entity.FlowNodeInfo;
import com.zxw.flow.domain.vo.FlowNodeInfoPageVO;
import com.zxw.flow.domain.vo.FlowNodeInfoVO;
import org.springframework.web.bind.annotation.*;

/**
 * @author Xuewei.Zhang
 * @date 2022/7/7
 */
public interface FlowNodeInfoApi {

    @GetMapping("/page")
    BasePageRes<FlowNodeInfo> page(FlowNodeInfoPageVO flowNodeInfoPageVO);

    @GetMapping("/{flowNodeInfoId}")
    BaseRes<FlowNodeInfo> findFlowNodeInfoById(@PathVariable("flowNodeInfoId") Long flowNodeInfoId);

    @PostMapping("/insert")
    BaseRes<FlowNodeInfoVO> insertFlowNodeInfo(@RequestBody FlowNodeInfoVO flowNodeInfoVO);

    @PutMapping("/update/{flowNodeInfoId}")
    BaseRes updateFlowNodeInfo(@PathVariable("flowNodeInfoId") Long flowNodeInfoId, @RequestBody FlowNodeInfoVO flowNodeInfoVO);

    @DeleteMapping("/{flowNodeInfoIds}")
    BaseRes deleteFlowNodeInfo(@PathVariable("flowNodeInfoIds") String flowNodeInfoIds);
    
}
